import request from '@/utils/request'

// 商品列表
export function getEggList(params: any) {
    return request.get({ url: '/admin.egg.goods/list', params })
}


//添加商品
export function addEgg(params: any) {
    return request.post({ url: '/admin.egg.goods/add', params })
}


// 获取商品赠送优惠券列表-用于鸡蛋商品
export function getGiveGoodsCouponListToGift(params: any) {
    return request.get({ url: '/admin.shop.coupon/getGiveGoodsCouponListToGift', params })
}


//修改商品
export function editEgg(params: any) {
    return request.post({ url: '/admin.egg.goods/edit', params })
}

//商品详情
export function detailEgg(params: any) {
    return request.post({ url: '/admin.egg.goods/detail', params })
}


//删除商品
export function delEgg(params: any) {
    return request.post({ url: '/admin.egg.goods/del', params })
}

//恢复已删除的商品
export function rollbackDel(params: any) {
    return request.post({ url: '/admin.egg.goods/rollbackDel', params })
}

//快捷修改-支持上下架和排序
export function quickEdit(params: any) {
    return request.post({ url: '/admin.egg.goods/quickEdit', params })
}





//订单列表
export function orderList(params: any) {
    return request.post({ url: '/admin.egg.order/list', params })
}


//订单详情
export function orderDetail(params: any) {
    return request.post({ url: '/admin.egg.order/detail', params })
}


//单据凭证支付审核
export function orderAudit(params: any) {
    return request.post({ url: '/admin.egg.order/audit', params })
}


//取消未支付的订单
export function orderCancel(params: any) {
    return request.post({ url: '/admin.egg.order/cancel', params })
}


//一键发货(勾选版)
export function orderPick(params: any) {
    return request.post({ url: '/admin.egg.order/pick', params })
}

//一键发货(商品编号版)
export function orderPick_un(params: any) {
    return request.post({ url: '/admin.egg.order/deliver_order', params })
}


//一键签收(勾选版)
export function orderFo(params: any) {
    return request.post({ url: '/admin.egg.order/for', params })
}

//一键签收(商品编号版)
export function orderFo_un(params: any) {
    return request.post({ url: '/admin.egg.order/for_order', params })
}



//一键核销(商品编号版)
export function sucall_order_un(params: any) {
    return request.post({ url: '/admin.egg.order/sucall_order', params })
}

//一键核销(勾选版)
export function sucall_order(params: any) {
    return request.post({ url: '/admin.egg.order/sucall', params })
}


//确认收货
export function orderConfirm(params: any) {
    return request.post({ url: '/admin.egg.order/confirm', params })
}


//订单核销
export function orderSuc(params: any) {
    return request.post({ url: '/admin.egg.order/suc', params })
}


//退款
export function orderRefund(params: any) {
    return request.post({ url: '/admin.egg.order/refund', params })
}


// 鸡蛋获取记录
export function balanceList(params: any) {
    return request.post({ url: '/admin.egg.balance/list', params })
}
